package com.itheima.web.manager;

import com.itheima.service.db.AnalysisByDayService;
import com.itheima.vo.AnalysisSummaryVo;
import com.itheima.vo.DataStatisticsVo;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author Guanxing
 * @date 2021/10/7
 */
@Component
public class AnalysisManager {

    @Reference
    private AnalysisByDayService analysisByDayService;

    //概要统计
    public AnalysisSummaryVo summary() {
        return analysisByDayService.summary();
    }

    //新增、活跃用户、次日留存率
    public DataStatisticsVo dashboard(Long sd, Long ed, String type) {
        return analysisByDayService.dashboard(sd, ed, type);
    }
}
